﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CreateData;
using Common.Library.StringExt.Randoms;
using Newtonsoft.Json;
using System.Collections.Generic;
using CreateData.RandomHelp;

namespace CreateDataTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {

            Create c = new Create();
            //c.CreateUserInfo();
            c.CreateJobRecord();
        }

        #region 测试时间
        [TestMethod]
        public void Test测试时间()
        {

            List<string> timeList = new List<string>();
            for (int i = 0; i < 1000; i++)
            {
                timeList.Add(RandomTime.GetRandomTime().ToString("yyyy-MM-dd HH:mm:ss"));
            }

        }
        #endregion

        #region 测试职位
        [TestMethod]
        public void Test测试职位()
        {
            List<string> list = new List<string>();
            for (int i = 0; i < 10000; i++)
            {
                list.Add(职位.Get职位());
            }

        }
        #endregion

        [TestMethod]
        public void Test测试批量生成()
        {
            List<decimal> list = new List<decimal>();
            for (int i = 0; i < 10000; i++)
            {
                list.Add(RandomExt.GetDecimal(1,10000));
            }
        }

        [TestMethod]
        public void 生成身份证号()
        {

            //string idCard = IDCardNumber.Radom();

            IDCardNumber.ProvincesAndCounties("41280119");


        }


    }
}
